package com.sicpa.common.enums;

import com.sicpa.common.utils.StringUtils;

/**
 * ReportTypeEnum
 */
public enum ReportTypeEnum {

    AUDIT_OF_LISTED_COMPANIES("上市公司审计"),
    GENERAL_ENTERPRISE_AUDIT("一般企业审计"),
    AUDIT_OF_LARGE_STATE_OWNED_ENTERPRISES("国有大型企业审计"),
    AUDIT_OF_PUBLIC_INSTITUTIONS("事业单位审计"),
    CAPITAL_VERIFICATION("验资业务"),
    SPECIAL_AUDIT_BUSINESS("专项审计业务"),
    INTERNAL_CONTROL_ASSURANCE_OF_LISTED_COMPANIES("上市公司内控鉴证业务"),
    AUDITING_OF_LISTED_COMPANIES_IN_THE_NEW_THIRD_BOARD("上市公司新三板企业审计"),
    OTHER("其它");

    private String value;

    ReportTypeEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public static boolean checkAll(String tem){
        return StringUtils.equals(tem,ReportTypeEnum.OTHER.getValue()) || StringUtils.equals(tem,ReportTypeEnum.AUDITING_OF_LISTED_COMPANIES_IN_THE_NEW_THIRD_BOARD.getValue())
                || StringUtils.equals(tem,ReportTypeEnum.INTERNAL_CONTROL_ASSURANCE_OF_LISTED_COMPANIES.getValue()) || StringUtils.equals(tem,ReportTypeEnum.SPECIAL_AUDIT_BUSINESS.getValue())
                || StringUtils.equals(tem,ReportTypeEnum.CAPITAL_VERIFICATION.getValue()) || StringUtils.equals(tem,ReportTypeEnum.AUDIT_OF_PUBLIC_INSTITUTIONS.getValue())
                || StringUtils.equals(tem,ReportTypeEnum.GENERAL_ENTERPRISE_AUDIT.getValue()) || StringUtils.equals(tem,ReportTypeEnum.AUDIT_OF_LISTED_COMPANIES.getValue())
                || StringUtils.equals(tem,ReportTypeEnum.AUDIT_OF_LARGE_STATE_OWNED_ENTERPRISES.getValue())
                ;
    }
}
